<template>
  <div>
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="(item,index) in list" :key="index">
        <!-- <h3>{{ item }}</h3> -->
        <img :src="item.pic"  class="img">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
    data(){
        return {
            list:[]
        }
    },
    mounted(){
        this.$axios.get('/imgdata.json').then(res =>{
            console.log(res.imgdata);
            this.list = res.imgdata;
            console.log(this.list);
            
        })
        
    }
};
</script>

<style>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }
  .img{
      width: 100%;
      height: 100%;
  }
 
</style>